@model SecurityGuard.ViewModels.RegisterViewModel
@{
    ViewBag.Title = "Register";
}
<h2>
    Create a New Account</h2>
<p>
    Use the form below to create a new account.
</p>
<p>
    Password Requirements:</p>
<ul>
    <li>To be a minimum of @Membership.MinRequiredPasswordLength characters in length.</li>
    @if (Membership.MinRequiredNonAlphanumericCharacters > 0)
    {
        <li>To have a minimum of @Membership.MinRequiredNonAlphanumericCharacters non-alpha
            numeric characters included, such as &quot;<span style="font-family: Courier New;
                font-size: 16px;">(){}-_*&^%$#@@!</span>&quot;.</li>
    }
</ul>
@using (Html.BeginForm())
{
    @Html.BootstrapValidationSummary(false, true, "Please fix the following errors")
    <div>
        <fieldset>
            <legend>Account Information</legend>
            <div class="clearfix">
                @Html.LabelFor(m => m.UserName)
                <div class="input">
                    @Html.TextBoxFor(m => m.UserName)
                    <span class="help-inline">@Html.ValidationMessageFor(m => m.UserName)</span>
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(m => m.Email)
                <div class="input">
                    @Html.TextBoxFor(m => m.Email)
                    <span class="help-inline">@Html.ValidationMessageFor(m => m.Email)</span>
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(m => m.Password)
                <div class="input">
                    @Html.PasswordFor(m => m.Password)
                    <span class="help-inline">@Html.ValidationMessageFor(m => m.Password)</span>
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(m => m.ConfirmPassword)
                <div class="input">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    <span class="help-inline">@Html.ValidationMessageFor(m => m.ConfirmPassword)</span>
                </div>
            </div>
            @if (Model.RequireSecretQuestionAndAnswer)
            {
                <div class="clearfix">
                    @Html.LabelFor(model => model.SecretQuestion)
                    <div class="input">
                        @Html.TextBoxFor(model => model.SecretQuestion)
                        <span class="help-inline">@Html.ValidationMessageFor(model => model.SecretQuestion)</span>
                    </div>
                </div>

                <div class="clearfix">
                    @Html.LabelFor(model => model.SecretAnswer)
                    <div class="input">
                        @Html.TextBoxFor(model => model.SecretAnswer)
                        <span class="help-inline">@Html.ValidationMessageFor(model => model.SecretAnswer)</span>
                    </div>
                </div>

            }
            <br />
            <div class="clearfix">
                <div class="input">
                    <input type="submit" value="Register" class="btn primary" />
                </div>
            </div>
        </fieldset>
    </div>
}
